package com.cw.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * @program: MySyetem
 * @description: 菜单实体类
 * @author: 张庆恒
 * @create: 2021-08-28 18:55
 **/
@Data
@TableName(value = "menu")
public class Menu implements Serializable {
    @TableId
    private Integer mid;
    private String mname;
    private String murl;
    private Integer mpid;
    private String micon;
    @TableField(exist = false)
    private List<Menu> childMenu = new ArrayList<>();
}
